import { service } from '../service/request'

//登录 改密 重置
export async function URCheck(data: any) {
  return await service({
    url: 'Feeder/Main/URCheck',
    method: 'post',
    data
  })
}

//查询信息
export async function QueryInfo(data: any) {
  return await service({
    url: 'Feeder/Main/Query',
    method: 'post',
    data
  })
}

//保存信息
export async function SaveInfo(data: any) {
  return await service({
    url: 'Feeder/Main/Save',
    method: 'post',
    data
  })
}

//运行
export async function RunMonitor(data: any) {
  return await service({
    url: 'Feeder/Main/RunMonitor',
    method: 'post',
    data
  })
}

//开启
export async function StartMonitor(data: any) {
  return await service({
    url: 'Feeder/Main/StartMonitor',
    method: 'post',
    data
  })
}

//开闭
export async function StopMonitor(data: any) {
  return await service({
    url: 'Feeder/Main/StopMonitor',
    method: 'post',
    data
  })
}

//导出
export async function ExportFile(data: any) {
  return await service(
    {
      url: 'Feeder/Main/Download',
      method: 'post',
      data: data,
      responseType: 'blob'
    }
  )
}
